package ai.peanut.provider.a;

import ai.peanut.dubbo.inter.a.ATestService;
import com.alibaba.dubbo.config.annotation.Service;

@Service(version = "1.0.0",interfaceClass = ATestService.class)
public class ATestServiceImpl implements ATestService {
    @Override
    //异常相当于成功 只有超时无响应才会重试
    public String demo(Integer a) {
        System.out.println("11111111111111111111");
        int b = 0 ;
        if(1==1){
            throw new RuntimeException("----asdfdsf") ;
        }

        return a+"----------sdfdsfdsf";
    }
}
